//explorer fix
if(!document.all){//Firefox
	//innerText   define
	HTMLElement.prototype.__defineGetter__("innerText",
		function(){
			return this.textContent;
		}
	);
	HTMLElement.prototype.__defineSetter__("innerText",
		function(sText){
		  this.textContent=sText;
		}
	); 
} 
//utility
function $(id) {
	return document.getElementById(id);
}
function AddLoadEvent(func)
{
	var oldOnLoad=window.onload;
	if (typeof oldOnLoad != "function"){
		window.onload=func;
	}
	else{
		window.onload=function()
		{
			oldOnLoad();
			func();
		}
	}	
}
function InsertAfter(newNode,curNode)
{
	var pNode=curNode.parentNode;
	var sNode=curNode.previsourSibling;
	if (!sNode){
		pNode.appendChild(newNode,curNode);
	}
	else{
		pNode.insertBefore(newNode,sNode);
	}
}
//for search type change
function CT(v,lb)
{
	document.forms[0].t.value=v;
	$("tL").innerText=lb;	
}